#!/bin/bash
#

bash check-network.sh ||  ! echo "skipping online unit tests" || exit 77

# unicode tests
bash crawl-test.sh \
	--errors 1 --files 10 \
	--found ut.httrack.com/unicode-links/caf%a91bce.html \
	--found ut.httrack.com/unicode-links/café30f4.html \
	--found ut.httrack.com/unicode-links/café3860.html \
	--found ut.httrack.com/unicode-links/café463e.html \
	--found ut.httrack.com/unicode-links/café5e1f.html \
	--found ut.httrack.com/unicode-links/café7b30.html \
	--found ut.httrack.com/unicode-links/café8007.html \
	--found ut.httrack.com/unicode-links/café9fa8.html \
	--found ut.httrack.com/unicode-links/caféae52.html \
	--found ut.httrack.com/unicode-links/caféc009.html \
	--found ut.httrack.com/unicode-links/utf8.html \
	httrack http://ut.httrack.com/unicode-links/utf8.html

bash crawl-test.sh \
	--errors 4 --files  7 \
	--found ut.httrack.com/unicode-links/cafÃ©3860.html \
	--found ut.httrack.com/unicode-links/cafÃ©9fa8.html \
	--found ut.httrack.com/unicode-links/café30f4.html \
	--found ut.httrack.com/unicode-links/café5e1f.html \
	--found ut.httrack.com/unicode-links/café7b30.html \
	--found ut.httrack.com/unicode-links/café8007.html \
	--found ut.httrack.com/unicode-links/caf%e939bd.html \
	--found ut.httrack.com/unicode-links/caf%e9ae52.html \
	--found ut.httrack.com/unicode-links/caféaec2.html \
	--found ut.httrack.com/unicode-links/caféfad6.html \
	--found ut.httrack.com/unicode-links/default.html \
	httrack http://ut.httrack.com/unicode-links/default.html

bash crawl-test.sh \
	--errors 2 --files  9 \
	--found ut.httrack.com/unicode-links/caf%a9ae52.html \
	--found ut.httrack.com/unicode-links/caf%a9bf59.html \
	--found ut.httrack.com/unicode-links/café30f4.html \
	--found ut.httrack.com/unicode-links/café3860.html \
	--found ut.httrack.com/unicode-links/café5e1f.html \
	--found ut.httrack.com/unicode-links/café647f.html \
	--found ut.httrack.com/unicode-links/café7b30.html \
	--found ut.httrack.com/unicode-links/café8007.html \
	--found ut.httrack.com/unicode-links/caféaec2.html \
	--found ut.httrack.com/unicode-links/caféfad6.html \
	--found ut.httrack.com/unicode-links/iso88591.html \
	httrack http://ut.httrack.com/unicode-links/iso88591.html

bash crawl-test.sh \
	--errors 4 --files  9 \
	--found ut.httrack.com/unicode-links/caf%a8%a6c72a.html \
	--found ut.httrack.com/unicode-links/caf%a9bf59.html \
	--found ut.httrack.com/unicode-links/café8007.html \
	--found ut.httrack.com/unicode-links/cafébf43.html \
	--found ut.httrack.com/unicode-links/cafédcd8.html \
	--found ut.httrack.com/unicode-links/café2461.html \
	--found ut.httrack.com/unicode-links/caf%a8%a61bce.html \
	--found ut.httrack.com/unicode-links/caf%a9ae52.html \
	--found ut.httrack.com/unicode-links/café7b30.html \
	--found ut.httrack.com/unicode-links/café30f4.html \
	--found ut.httrack.com/unicode-links/café5e1f.html \
	--found ut.httrack.com/unicode-links/café3860.html \
	--found ut.httrack.com/unicode-links/gb18030.html \
	httrack http://ut.httrack.com/unicode-links/gb18030.html
